package com.ruoyi.safety.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 区域管理对象 area
 * 
 * @author ruoyi
 * @date 2024-03-12
 */
public class Area extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域ID */
    private String areaId;

    /** 煤矿名称 */
    @Excel(name = "煤矿名称")
    private String mineId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String areaName;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 责任部门 */
    @Excel(name = "责任部门")
    private String responsibleDepartmentId;

    /** 责任部门名称 */
    @Excel(name = "责任部门名称")
    private String responsibleDepartmentName;

    /** 责任人 */
    @Excel(name = "责任人")
    private String responsiblePersonId;

    /** 责任人名称 */
    @Excel(name = "责任人名称")
    private String responsiblePersonName;

    /** 增加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "增加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertDate;

    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setMineId(String mineId)
    {
        this.mineId = mineId;
    }

    public String getMineId()
    {
        return mineId;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setResponsibleDepartmentId(String responsibleDepartmentId) 
    {
        this.responsibleDepartmentId = responsibleDepartmentId;
    }

    public String getResponsibleDepartmentId() 
    {
        return responsibleDepartmentId;
    }
    public void setResponsibleDepartmentName(String responsibleDepartmentName) 
    {
        this.responsibleDepartmentName = responsibleDepartmentName;
    }

    public String getResponsibleDepartmentName() 
    {
        return responsibleDepartmentName;
    }
    public void setResponsiblePersonId(String responsiblePersonId) 
    {
        this.responsiblePersonId = responsiblePersonId;
    }

    public String getResponsiblePersonId() 
    {
        return responsiblePersonId;
    }
    public void setResponsiblePersonName(String responsiblePersonName) 
    {
        this.responsiblePersonName = responsiblePersonName;
    }

    public String getResponsiblePersonName() 
    {
        return responsiblePersonName;
    }
    public void setInsertDate(Date insertDate) 
    {
        this.insertDate = insertDate;
    }

    public Date getInsertDate() 
    {
        return insertDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("mineId", getMineId())
            .append("areaName", getAreaName())
            .append("remark", getRemark())
            .append("sort", getSort())
            .append("responsibleDepartmentId", getResponsibleDepartmentId())
            .append("responsibleDepartmentName", getResponsibleDepartmentName())
            .append("responsiblePersonId", getResponsiblePersonId())
            .append("responsiblePersonName", getResponsiblePersonName())
            .append("insertDate", getInsertDate())
            .toString();
    }
}
